//@import "../../style/slagCar/pubLayout";

.g-main{
  flex: 1;
  height: 0;
  .info-wrap{
    margin-bottom: 20rpx;
    .flex{
      display: flex;
      justify-content: space-between;
      align-items: center;
    }
    .pdlr{
      padding: 0 20rpx;
    }
    .pdtb{
      padding-top: 20rpx;
      padding-bottom: 20rpx;
    }
    .bdr{
      border-right: 1px solid #e6e6e6;
    }
    .add-wrap{
      background: #ffffff;
      padding: 16rpx 20rpx;
      .add{
        display: flex;
        align-items: center;
        color: #11c363;
        font-size: 30rpx;
      }
    }
    .add-btn{
      background: #01C257;
      color: #ffffff;
      padding: 10rpx;
      border-radius: 8rpx;
      font-size: 28rpx;
      min-width: 88rpx;
      text-align: center;
      &:active{
        background: rgba(1, 194, 87, 0.71);
      }
    }

    .li{
      background: #ffffff;
      padding-left: 20rpx;
      padding-right: 20rpx;
      border-bottom: 1px solid #e6e6e6;
      display: flex;
      justify-content: space-between;
      align-items: center;
      .li-name{
        color: #999999;
        font-size: 28rpx;
      }
      .label{
        padding: 20rpx 0;
        width: 160rpx;
        &.required{
          &:before{
            content: '*';
            color: #fd0000;
          }
        }
        &.disabled{
          color: #999999;
        }
      }
      .value{
        padding: 20rpx 0;
        flex: 1;
        input,textarea{
          //height: 100%;
          width: 100%;
        }
        textarea{
          height: 160rpx;
        }
      }
    }

    .card-wrap{
      border: 1px solid #e6e6e6;
    }

    .list-wrap{
      display: flex;
      flex-direction:column-reverse;
    }
    .item-wrap{
      margin-bottom: 20rpx;
    }
  }
  .submit-wrap{
    padding: 0 20rpx 20rpx;
    .sub-btn{
      color: #ffffff;
      background: #01C257;
      width: 100%;
      border-radius: 8rpx;
      text-align: center;
      height: 88rpx;
      line-height: 88rpx;
      &:active{
        background: rgba(1, 194, 87, 0.71);
      }
    }
  }

  .dtl-wrap{
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    max-height: 100%;
    .dtl-content{
      flex: 1;
      height: 0;
      overflow: auto;
    }
    .van-search__content{
      background: #fff;
    }
  }
}

.popup-wrap{
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  .search-wrap{
    height: 100rpx;
    padding-right: 16rpx;
    display: flex;
    align-items: center;
    justify-content: space-between;
    .search-ipt{
      flex: 1;
      width: 0;
    }
  }
  .list-wrap{
    flex: 1;
    height: 0;
    overflow: auto;
    .li{
      border-bottom: 1px solid #e6e6e6;
      padding: 20rpx;
      font-size: 32rpx;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }
  }

  .picker-wrap{
    display: flex;
    justify-content: space-between;
    padding: 20rpx 20rpx 20rpx 68rpx;
    .bar{
      font-size: 32rpx;
      color: #01C257;
    }
  }
  .sidebar-wrap{
    flex: 1;
    height: 0;
    overflow: auto;
    display: flex;
    .sidebar-item{
      height: 100%;
      &:last-child{
        flex: 1;
      }
    }
    .driver-wrap{
      width: 100%;
    }
    .driver-item{
      padding: 10px;
      font-size: 34rpx;
      display: flex;
      align-items: center;
      justify-content: space-between;
      & + .driver-item{
        border-top: 1px solid #e6e6e6;
      }
      &.active{
        color: #01C257;
      }
    }

    .main-item{
      width: 200rpx;
    }
    .main-active{
      border-color: #01C257
    }
    .content-item{
      width: 100%;
    }
    .content-active{
      color: #01C257
    }
  }

  .btn-wrap{
    padding: 0 20rpx 20rpx;
    .btn{
      color: #ffffff;
      background: #01C257;
      width: 100%;
      border-radius: 8rpx;
      text-align: center;
      height: 88rpx;
      line-height: 88rpx;
      &:active{
        background: rgba(1, 194, 87, 0.71);
      }
    }
  }

  .checkAll{
    display: flex;
    justify-content: flex-end;
    padding: 20rpx;
  }

  .header{
    height: 100rpx;
    line-height: 100rpx;
    //padding-left: 20rpx;
    font-size: 32rpx;
    width: 100%;
    text-align: center;
    //background: #34ce7a;
    //color: #FFFFFF;
    background: #FFFFFF;
    border-bottom: 1px solid #e6e6e6;
  }
  .main{
    padding: 20rpx 0;
    flex: 1;
    overflow: auto;
  }
  .footer{
    padding: 0 20rpx 20rpx;
    .btn{
      color: #ffffff;
      background: #01C257;
      width: 100%;
      border-radius: 8rpx;
      text-align: center;
      height: 88rpx;
      line-height: 88rpx;
      &:active{
        background: rgba(1, 194, 87, 0.71);
      }
    }
  }
}
